<?php

/**
 * Subclass for representing a row from the 'comment' table.
 *
 *
 *
 * @package lib.model
 */
class Comment extends BaseComment
{
    //自身のIDをもとにして、ついている返信オブジェクト配列を取得
    public function getReplysFromCommentId(){
        $c = new Criteria;
        $c->add(ReplyPeer::COMMENT_ID, $this->getId());
        $c->addDescendingOrderByColumn(ReplyPeer::COMMENT_ID);
        $rtn = ReplyPeer::doselect($c);

        return $rtn;

    }
}
